.class public abstract Lcom/xingbook/park/ui/bd;
.super Landroid/widget/RelativeLayout;


# instance fields
.field protected a:F

.field protected b:Lcom/xingbook/park/ui/be;

.field protected c:Landroid/widget/RelativeLayout;

.field private d:Landroid/view/View;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/be;)V
    .locals 10
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const v9, 0x7f0a0024

    const/4 v8, -0x2

    const/high16 v7, 0x41f0

    const/4 v6, 0x0

    const/4 v5, 0x0

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput p2, p0, Lcom/xingbook/park/ui/bd;->a:F

    iput-object p3, p0, Lcom/xingbook/park/ui/bd;->b:Lcom/xingbook/park/ui/be;

    const/high16 v0, 0x4258

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v1, 0x4260

    mul-float/2addr v1, p2

    float-to-int v1, v1

    const/high16 v2, 0x41f8

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x41e0

    mul-float/2addr v3, p2

    float-to-int v3, v3

    new-instance v4, Landroid/view/View;

    invoke-direct {v4, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/xingbook/park/ui/bd;->d:Landroid/view/View;

    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v4, v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v3, v4, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v2, v4, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->d:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->d:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bd;->addView(Landroid/view/View;)V

    const/high16 v0, 0x42b6

    mul-float/2addr v0, p2

    float-to-int v0, v0

    mul-float v1, v7, p2

    float-to-int v1, v1

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bd;->e:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/bd;->e:Landroid/widget/TextView;

    const v3, 0x420b3333

    mul-float/2addr v3, p2

    invoke-virtual {v2, v5, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bd;->e:Landroid/widget/TextView;

    const v3, -0xcccccd

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v8, v8}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v1, v2, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v0, v2, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->e:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bd;->addView(Landroid/view/View;)V

    const/high16 v0, 0x4238

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v1, 0x4210

    mul-float/2addr v1, p2

    float-to-int v1, v1

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    mul-float v3, v7, p2

    invoke-virtual {v2, v5, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    const/16 v3, -0x7600

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v8, v8}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v1, v2, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    const/16 v1, 0xb

    invoke-virtual {v2, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iput v0, v2, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bd;->addView(Landroid/view/View;)V

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0202b0

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/high16 v1, 0x41d0

    mul-float/2addr v1, p2

    float-to-int v1, v1

    invoke-virtual {v0, v5, v5, v1, v1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    const/high16 v2, 0x4120

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    invoke-virtual {v1, v0, v6, v6, v6}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {p0}, Lcom/xingbook/park/ui/bd;->a()V

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->c:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v9}, Landroid/widget/RelativeLayout;->setId(I)V

    new-instance v0, Landroid/view/View;

    invoke-direct {v0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/bd;->g:Landroid/view/View;

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x1

    const/high16 v2, 0x430c

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v1, 0x3

    invoke-virtual {v0, v1, v9}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bd;->g:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->g:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bd;->addView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public abstract a()V
.end method

.method public a(ILjava/lang/String;Ljava/lang/String;Z)V
    .locals 4

    const/16 v3, 0x8

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->e:Landroid/widget/TextView;

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-eqz p3, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    invoke-virtual {v0, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    sparse-switch p1, :sswitch_data_0

    move v0, v1

    :goto_1
    if-eqz v0, :cond_1

    iget-object v2, p0, Lcom/xingbook/park/ui/bd;->d:Landroid/view/View;

    invoke-virtual {v2, v0}, Landroid/view/View;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->d:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    if-eqz p4, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->g:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_3
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    :sswitch_0
    const v0, 0x7f0202b4

    goto :goto_1

    :sswitch_1
    const v0, 0x7f0202b8

    goto :goto_1

    :sswitch_2
    const v0, 0x7f0202ac

    goto :goto_1

    :sswitch_3
    const v0, 0x7f0202b1

    goto :goto_1

    :sswitch_4
    const v0, 0x7f0202ab

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->d:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2

    :cond_2
    iget-object v0, p0, Lcom/xingbook/park/ui/bd;->g:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    :sswitch_data_0
    .sparse-switch
        0x30 -> :sswitch_1
        0x40 -> :sswitch_2
        0x50 -> :sswitch_2
        0x60 -> :sswitch_3
        0x70 -> :sswitch_0
        0xf0 -> :sswitch_4
    .end sparse-switch
.end method

.method public getBorderWidth()I
    .locals 3

    const/4 v0, 0x1

    const/high16 v1, 0x3f80

    iget v2, p0, Lcom/xingbook/park/ui/bd;->a:F

    mul-float/2addr v1, v2

    float-to-int v1, v1

    if-ge v1, v0, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method
